package com.guoqiang.class_two.three;

public class ConsumptionInformation {
    //成员变量
    private int talkTime; //用于描述通话时长
    private double netFlow;        //用于描述上网流量
    private double consumptionAmount; //用于描述消费金额

    //无参构造方法
    public ConsumptionInformation() {
    }

    //有参构造方法
    public ConsumptionInformation(int talkTime, double netFlow, double consumptionAmount) {
        setTalkTime(talkTime);
        setNetFlow(netFlow);
        setConsumptionAmount(consumptionAmount);
    }

    public double getTalkTime() {
        return talkTime;
    }

    public void setTalkTime(int talkTime) {
        this.talkTime = talkTime;
    }

    public double getNetFlow() {
        return netFlow;
    }

    public void setNetFlow(double netFlow) {
        this.netFlow = netFlow;
    }

    public double getConsumptionAmount() {
        return consumptionAmount;
    }

    public void setConsumptionAmount(double consumptionAmount) {
        this.consumptionAmount = consumptionAmount;
    }
}
